package com.qtenv.datasync.service.service.impl;

import com.qtenv.datasync.service.entity.DmaFreeze;
import com.qtenv.datasync.service.mapper.DmaFreezeMapper;
import com.qtenv.datasync.service.service.DmaFreezeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * dma冻结数据 服务实现类
 * </p>
 *
 * @author CBL
 * @since 2022-08-03
 */
@Service
public class DmaFreezeServiceImpl extends ServiceImpl<DmaFreezeMapper, DmaFreeze> implements DmaFreezeService {

    @Override
    public List<DmaFreeze> getDmaSupplyDataList(String tenantId, String areaId) {
        return this.getBaseMapper().getDmaSupplyDataList(tenantId, areaId);
    }

    @Override
    public DmaFreeze getBuildingUsedFlow(String tenantId, String areaId, String startDate, String endDate) {
        return this.getBaseMapper().getBuildingUsedFlow(tenantId, areaId, startDate, endDate);
    }

    @Override
    public List<DmaFreeze> getBuildingHistoryUsedFlow(String tenantId, String areaId) {
        return this.getBaseMapper().getBuildingHistoryUsedFlow(tenantId, areaId);
    }

    @Override
    public DmaFreeze getLeakageAssessmentData(String tenantId, String areaId, String dataMonth) {
        return this.getBaseMapper().getLeakageAssessmentData(tenantId, areaId, dataMonth);
    }

    @Override
    public DmaFreeze getLeakageCompositionData(String tenantId, String areaId, String dataMonth) {
        return this.getBaseMapper().getLeakageCompositionData(tenantId, areaId, dataMonth);
    }

    @Override
    public DmaFreeze getLeakageApertureData(String tenantId, String areaId, String dataMonth) {
        return this.getBaseMapper().getLeakageApertureData(tenantId, areaId, dataMonth);
    }

    @Override
    public DmaFreeze getInvestmentAdviceData(String tenantId, String areaId, String dataMonth) {
        return this.getBaseMapper().getInvestmentAdviceData(tenantId, areaId, dataMonth);
    }

    @Override
    public List<DmaFreeze> getDmaMinNightFlow(String areaId, String startDate, String endDate) {
        return this.getBaseMapper().getDmaMinNightFlow(areaId, startDate, endDate);
    }
}
